package com.ssm.service;

import com.ssm.po.Product;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface ProductService {

    List<Product> findAll();

    void updateProduct(Product product);

    void deleteByPid(Integer pid);

    void saveProduct(Product product);

    Product findByPid(Integer pid);
}
